namespace ScrumSprintMonitor.Samples.Feed.RSS
{
	#region #using Directives

	using System;
	using System.Globalization;

	#endregion

	public class Element
	{
		public string title { get; set; }
		public string link { get; set; }
		public string description { get; set; }
		public string pubDate { get; set; }

		public void SetPubDate(DateTime time)
		{
			pubDate = string.Format(CultureInfo.InvariantCulture, "{0:ddd, dd MMM yyyy HH':'mm':'ss} {1}", time,
			                        string.Format("{0:%K}", time).Replace(":", string.Empty));
		}
	}
}